package com.study.tiger.service;

import com.study.tiger.config.DBType;
import com.study.tiger.config.DBTypeEnum;
import com.study.tiger.mapper.StudyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StudyService {

    @Autowired
    StudyMapper studyMapper;

    @DBType(type = DBTypeEnum.MASTER)
    public List<Map<String,Object>> getList(){
        return studyMapper.getList();
    }
}
